home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 49
/
Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso
/
Aminet
/
util
/
boot
/
WBSP_Prefs.lha
/
WBStartup+Prefs
/
Source
/
GetPriorityWindow.c
< prev
next >
Wrap
C/C++ Source or Header
|
2002-03-05
|
1KB
|
35 lines
#include <exec/types.h>
#include <libraries/mui.h>
#include <string.h>
#include <proto/dos.h>
#include <proto/exec.h>
#include <proto/intuition.h>
#include <proto/muimaster.h>
#include "WBStartup+Prefs.h"
#include "WBStartupPlusPrefs_Cat.h"
void GetPriority(int pri)
{
pwinobj=MUI_NewObject("Window.mui",MUIA_Window_Title,GetString(STRPriority),
MUIA_Window_LeftEdge,MUIV_Window_LeftEdge_Moused,
MUIA_Window_TopEdge,MUIV_Window_TopEdge_Moused,
MUIA_Window_RootObject,
MUI_NewObject("Group.mui",MUIA_Group_Child,
sliderobj=MUI_NewObject("Slider.mui",MUIA_Slider_Level,(LONG)pri,
MUIA_Slider_Min,-128,
MUIA_Slider_Max,127,
MUIA_Frame,MUIV_Frame_Slider,
TAG_DONE),
TAG_DONE),
TAG_DONE);
if (pwinobj)
{
SetAttrs(winobj,MUIA_Window_Sleep,TRUE,TAG_DONE);
DoMethod(appobj,OM_ADDMEMBER,pwinobj);
DoMethod(pwinobj,MUIM_Notify,MUIA_Window_CloseRequest,TRUE,appobj,2,MUIM_Application_ReturnID,4);
SetAttrs(pwinobj,MUIA_Window_Open,TRUE,TAG_DONE);
}
}